package org.pih.javarosa.activity.countryList;

import java.util.Vector;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.List;

public class CountryListView extends List {

	public final Command CMD_EXIT = new Command("Exit", Command.EXIT, 1);
	public final Command CMD_ABOUT = new Command("About", Command.SCREEN, 2);
	public final Command CMD_VIEW_SAVED = new Command("View Saved", Command.OK, 3);
	
	public CountryListView (String title, Vector countries) {
		super(title, List.IMPLICIT);
	
		for (int i = 0; i < countries.size(); i++) {
			append((String)countries.elementAt(i), null);
		}
		
		addCommand(CMD_EXIT);
		addCommand(CMD_ABOUT);
	}
}
